*** Template by {$T.bold()} version <em>{$Q.version}</em>. ***
{#template item}
	<li class="js_item item- {#if $T.active==1}active-{#else}{#/if}" id="sect{$T.oid}">
		<span class="bggg1-"><span class="bggg2-"><span class="bggg3-"><span class="bggg4-">
		<a href="#" class="js_item_del"><img src="{$P.img_path}/page_white_delete.png" alt="[Уд]" class="action- bn" /></a>
		<a href="#" class="js_item_edit"><img src="{$P.img_path}/page_white_edit.png" alt="[Ред]" class="action- bn" /></a>
		<h3 class="subtitle-">{$T.num}. {$T.title}</h3>
		<span class="desc-">{$T.items_count} записей <!--, {$T.comments_count} комментариев--></span>
	</span></span></span></span></li>
{#/template item}
{#template MAIN}
<div class="popup-widgets">
	<h4 class="title-">Управление разделами</h4>
	<div class="content- linkbar-">
		<ul class="menu- js_menu">
			{#foreach $T.items as itm}
			{#include item root=$T.itm}
			{#/for}
		</ul>
		<div class="js_add add-"><div class="bggg1-">
			<a href="#">Добавить раздел</a>
		</div></div>
	</div>
	<div class="buttons-">
		<a href="#" class="neutral- js_neutral bn"><img class="cancel- button-" alt="Закрыть" src="{$P.img_path}/button-cancel-gray.gif" /></a>
	</div>
</div>
{#/template MAIN}